package edu.ped.android.utils;

public class TagsMatrice {
	
	private int vertical_size = 10;
	private int horizontal_size = 10;
	private PayloadTag[][] tags;
	
	public TagsMatrice(){
		this.tags = new PayloadTag[horizontal_size][vertical_size];
	}
	
	public TagsMatrice(int x, int y){
		this.tags = new PayloadTag[x][y];
		vertical_size=y;
		horizontal_size=x;
	}
	
	public int getVertical_size() {
		return vertical_size;
	}

	public void setVertical_size(int vertical_size) {
		this.vertical_size = vertical_size;
	}

	public int getHorizontal_size() {
		return horizontal_size;
	}

	public void setHorizontal_size(int horizontal_size) {
		this.horizontal_size = horizontal_size;
	}

	public PayloadTag getTag(int x, int y){
		return this.tags[x][y];
	}
	
	public void setTag(int x, int y,int height, int width, Object valeur){
		this.tags[x][y] = new PayloadTag(x, y, height,width,valeur);
	}
}
